package com.atguigu.edu.publisher.service.impl;

import com.atguigu.edu.publisher.beans.UserChangeCtPerType;
import com.atguigu.edu.publisher.beans.UserPageCt;
import com.atguigu.edu.publisher.mapper.UserStatsMapper;
import com.atguigu.edu.publisher.service.UserStatsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserStatsServiceImpl implements UserStatsService {
    @Autowired
    private UserStatsMapper userStatsMapper;
    @Override
    public List<UserPageCt> getUvByPage(Integer date) {
        return userStatsMapper.selectUvByPage(date);
    }

    @Override
    public List<UserChangeCtPerType> getUserChangeCt(Integer date) {
        return userStatsMapper.selectUserChangeCtPerType(date);
    }
}
